package com.yuhs.zixing.shop.web.businss.controller.user;


import com.alibaba.fastjson.JSON;
import com.yuhs.zixing.shop.dal.business.user.entity.UserInfoDO;
import com.yuhs.zixing.shop.service.businss.user.UserInfoService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @ClassName UserInfoController
 * @Description UserInfoController
 * @Author yuhs
 * @CreateDate 2021/6/26
 **/
@Slf4j
@RestController
public class UserInfoController {
    @Resource
    UserInfoService userInfoService;


    @RequestMapping("getUserInfo")
    public UserInfoDO getUserInfo() {
        final UserInfoDO userInfo = userInfoService.getUserInfo();

        log.info("userInfo: {}", JSON.toJSONString(userInfo));
        return userInfo;
    }




}
